///////////////////////////////////////////////////////////////////////////////
// Name:        integralhistogram.h
// Purpose:     Integral histogram function
// Created:     2006
// Copyright:   (c) 2006, Ivan Laptev, TT Solutions
// License:     GPL, Please contact us for commercial license.
//              http://www.tt-solutions.com/
///////////////////////////////////////////////////////////////////////////////
#ifndef INTEGRALHISTOGRAM_H_
#define INTEGRALHISTOGRAM_H_

#include "objectdet/common.h"

#define ORIENTGRAD_DNUM4_			001
#define TEXTONS_SC12_GDORDER2_		002

void ilIntegralBlockHistOrig(pMat const& timgarr, pMat const& wimgarr, arrMat ihist,
                             size_t nc, size_t bxsz, size_t bysz);
void ilIntegralBlockHist(pMat const& timgarr, pMat const& wimgarr, arrMat ihist,
                         size_t nc, double bxsz, double bysz);

void ilClassifyImagePixels(pMat const& srcarr, pMat timgarr, pMat wimgarr, pMat cmeansnormarr, int pixclasstype);
void ilTextonClassifySC12GDO2(pMat const& srcarr, pMat textonsarr, pMat weightsarr, pMat cmeansnormarr);
void ilOrientGradClassifyD4(pMat const& srcarr, pMat orientarr, pMat weightarr);
#endif

